package com.dc.service.impl;

import java.util.List;

import com.dc.dao.OrdersDetailDao;
import com.dc.dao.impl.OrdersDetailDaoImpl;
import com.dc.entity.OrdersDetail;
import com.dc.service.OrdersDetailService;

public class OrdersDetailServiceImpl implements OrdersDetailService {
	
	//创建DAO对象
	OrdersDetailDao odd = new OrdersDetailDaoImpl();

	@Override
	public boolean addOrdersDetail(OrdersDetail ordersdetail) {
		//调用DAO的增加方法
		return odd.addOrdersDetail(ordersdetail);
	}

	@Override
	public List<OrdersDetail> selectOrdersDetailByLike(String ordernumber) {
		// TODO Auto-generated method stub
		return odd.selectOrdersDetailByLike(ordernumber);
	}

}
